package com.bojiu.lawsearch.lawsearch.service.impl;

import com.bojiu.lawsearch.lawsearch.mapper.WxGoodsMapper;
import com.bojiu.lawsearch.lawsearch.model.WxGoods;
import com.bojiu.lawsearch.lawsearch.service.WxGoodsService;
import com.bojiu.lawsearch.lawsearch.util.UtilTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: afdiao
 * @Date：2020/4/8 21:58
 * @Description:
 */
@Service
public class WxGoodsServiceImpl implements WxGoodsService {

    @Autowired
    WxGoodsMapper wxGoodsMapper;

    @Override
    public List<WxGoods> getGoodsList(int type) {
        String changeStrForSql = UtilTools.changeStrForSql("1,2");
        return wxGoodsMapper.getListByTypes(changeStrForSql);
    }
    
}
